package com.ruoyi.remote;

import com.ruoyi.employment.api.RemoteEmploymentService;
import com.ruoyi.employment.api.domain.TeacherToEmploymentDto;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.track.mapper.SysTrackMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class RemoteEmployment implements RemoteEmploymentService {
    @Autowired
    private SysTrackMapper sysTrackMapper;
    /**
     * 远程调用就业服务的批量新增方法
     * @param list
     * @return
     */
    @Override
    public R<Void> teacherToEmployment(List<TeacherToEmploymentDto> list) {
        sysTrackMapper.batch(list);
        return R.ok();
    }

    @Override
    public List<TeacherToEmploymentDto> getAllTrack() {
        return sysTrackMapper.getAllTrack();
    }


}
